<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>:only-child</title>
<style type="text/css">@import url(../README.css);</style>
<!--
<script type="text/javascript" src="../uuQuery.js"></script>
 -->
<script src="../../src/uuMeta.js"></script>
<script src="../../src/uuStyleSheet.js"></script>
<script src="../../src/uuQuery.js"></script>
<script type="text/javascript" src="iterator.js"></script>
</head>
<body>
<div>
<p>:only-child</p>
<p>"only-child" を赤くします。</p>
 <ul>
  <li>list1</li>
  <li>list2</li>
 </ul>
 <ul>
  <li>only-child</li>
 </ul>
</div>
<script>
function boot() {
  uuQuery("div ul>li:only-child").forEach(function(v) {
   v.style.color = "red";
  });
}
</script>
<pre class="eg">
 &lt;ul&gt;
  &lt;li&gt;list1&lt;/li&gt;
  &lt;li&gt;list2&lt;/li&gt;
 &lt;/ul&gt;
 &lt;ul&gt;
  &lt;li&gt;only-child&lt;/li&gt;
 &lt;/ul&gt;

  uuQuery("div ul&gt;li:only-child").forEach(function(v) {
   v.style.color = "red";
  });

</pre>
</body>
</html>
